/**   
*  This file is part of WaterfallDisplay.
    
*  WaterfallDisplay is free software: you can redistribute it and/or modify   
*  it under the terms of the GNU General Public License as published by   
*  the Free Software Foundation, either version 3 of the License, or   
*  (at your option) any later version.
     
*  WaterfallDisplay is distributed in the hope that it will be useful,   
*  but WITHOUT ANY WARRANTY; without even the implied warranty of   
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   
*  GNU General Public License for more details.

*  See <http://www.gnu.org/licenses/>.
     
*/  
package waterfall.demo;

/**
 * @author altug.uzunali
 *
 */
import waterfall.Waterfall;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class WaterfallDisplayDemo extends Application {

	@Override
	public void start(Stage stage) throws Exception {
        StackPane root = new StackPane();
        stage.setTitle("Waterfall Display Demo");
        stage.setScene(new Scene(root, 950, 400));
        HBox hbox = new HBox(10);
        hbox.setStyle("-fx-background-color: black;");
        Waterfall waterfall = new Waterfall(400, 320, 60, 1600);
        
        waterfall.setTranslateY(-35);  
        PropertyPane propertyPane = new PropertyPane(waterfall);
        hbox.getChildren().addAll(waterfall, propertyPane);
       
        root.getChildren().add(hbox);

        stage.show();
		
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}